package com.ch.home.mapper.restDishMapper;

import com.ch.home.bean.DishCustom;
import com.ch.home.bean.DishHistory;

import java.util.LinkedList;

/**
 * Created by CHEN on 2019/8/28.
 */

public interface DishHistoryMapper {

    /**
     * 查询信息
     * @param dishHistory
     * @return
     */
    LinkedList<DishHistory> getDishHistory(DishHistory dishHistory);

    /**
     * 拿到连表查询的有关信息
     * @param dishHistory
     * @return
     */
    LinkedList<DishHistory> getDishHistoryAndSource(DishHistory dishHistory);

    /**
     * 新增Dish
     * @param dishHistory
     * @return
     */
    int addDishHistory(DishHistory dishHistory);

    /**
     * 更新Dish
     * @param dishHistory
     * @return
     */
    int updateDishHistory(DishHistory dishHistory);

}
